package com.wfm.systemnotice.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.ConstructorArgs;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wfm
 * @since 2024-12-05
 */
@Data
@NoArgsConstructor
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("邮箱")
    private String email;

    public User(String wfm, int i, String s) {
        this.name = wfm;
        this.age = i;
        this.email = s;
    }

    public User(String wfm, int i) {
        this.name = wfm;
        this.age = i;
    }
    public User(String wfm, String email) {
        this.name = wfm;
        this.email = email;
    }
}
